package com.adam.springbucks.beas;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

/**
 *  注解方式配置bean，方式一：
 *  使用@Component
 */
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class CountryBean {

    private String name;

    private String location;

    private Integer area;

    public String get() {
        return this.toString();
    }
}
